// 引入样式表
import './styles/common/reset.scss';
import './styles/common/aui.scss';
import './styles/common/common.scss';

// 引入vue
import Vue from 'vue';

// 引入vue ajax
import VueResource from 'vue-resource';
Vue.use(VueResource);
Vue.http.options.emulateJSON = true;
Vue.http.options.emulateHTTP = true;

import App from './App.vue';

// 状态管理
import store from './store/';

// 引入路由配置
import router from './routes/router';

// 动态生成，不需要自定义标签
import Toast from "./components/toast/";
Vue.use(Toast);

import Loading from "./components/loading/";
Vue.use(Loading);

// 自定义过滤器
import filter from "./filter/filter.js";

// 实例化
const app = new Vue({
  	router,
  	store,
  	...App
});

export {app, router}